package com.lap.auth.adapter.driving.persistence.dict;

import com.lap.auth.adapter.driving.persistence.dict.po.DictTypePo;
import com.lap.auth.domain.dict.DictType;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface DictTypeConverter {

  @Mapping(target = "dictList", ignore = true)
  @Mapping(target = "event", ignore = true)
  DictType toDomain(DictTypePo dictTypePo);

  DictTypePo toPo(DictType dictType);
}
